package edu.qichen.onlineBlog.comments.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.qichen.onlineBlog.blogs.dto.BlogUserPageDto;
import edu.qichen.onlineBlog.comments.dto.CommentsBlogsUserPageDto;
import edu.qichen.onlineBlog.comments.pojo.Comments;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentsMapper extends BaseMapper<Comments> {
    List<CommentsBlogsUserPageDto> selectMapsPage(IPage<CommentsBlogsUserPageDto> page, QueryWrapper<BlogUserPageDto> wrapper, long id);

    List<CommentsBlogsUserPageDto> selectMapsUserPage(IPage<CommentsBlogsUserPageDto> page, QueryWrapper<BlogUserPageDto> wrapper, long id);
}
